package com.heima.admin;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
@MapperScan("com.heima.admin.mapper")
@EnableDiscoveryClient
public class Adminapplication {
    public static void main(String[] args) {
        SpringApplication.run(Adminapplication.class, args);
    }
    /*
    * 准备分页插件     */
    @Bean
    PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();

    }

}
